import request from '@/utils/request'

// 查询库存占用列表
export function listOccupy(query) {
  return request({
    url: '/inOutStock/occupy/list',
    method: 'get',
    params: query
  })
}

// 查询库存占用详细
export function getOccupy(id) {
  return request({
    url: '/inOutStock/occupy/' + id,
    method: 'get'
  })
}

// 新增库存占用
export function addOccupy(data) {
  return request({
    url: '/inOutStock/occupy',
    method: 'post',
    data: data
  })
}

// 修改库存占用
export function updateOccupy(data) {
  return request({
    url: '/inOutStock/occupy',
    method: 'put',
    data: data
  })
}

// 删除库存占用
export function delOccupy(id) {
  return request({
    url: '/inOutStock/occupy/' + id,
    method: 'delete'
  })
}
